<?php
$time=date('YmdHis');
$key=md5($time);
$merCode=602206;
$sign=md5("merCode=".$merCode."&time=".$time."&".$key);
 $time."+key:".$key."+mercode:".$merCode."+sign:".$sign;
?>
<html>
<head>
    <title>Upload Form</title>
</head>
<body>

<?php echo $error;?>

<form action="http://mediaty.tv189.com/fdoupload&<?php echo 'merCode='.$merCode."&".'time='.$time."&".'sign='.$sign."&".'key='.$key; ?>" method="post" enctype="multipart/form-data">

<input type="file" name="file" size="20" >
<br /><br />

<input type="submit" value="upload" id="btnSendCode" />

</form>

</body>
<script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>

<script type="text/javascript">
	var merCode = $('#merCode').val();
		 $(document).ready(function () {
               
            });
	    $('#btnSendCode').click(function(){
       
         

     });
	   function ajaxSubmit(){
	   	 var merCode = $('#merCode').val();
         var time = $('#time').val();
         var sign = $('#sign').val();
  
       	$.ajax({
			   type: "get",
			   url: "http://mediaty.tv189.com/fdoupload&",
			   dataType:"json",
			   data: {name:"xiaoming"},
			   success: function(msg){
			     alert( "Data Saved: " + msg );
			   }
			});
	   }

</script>	

</html>
